package com.example.travel.service.impl;

import com.example.travel.entity.User;
import com.example.travel.entity.dto.*;
import com.example.travel.mapper.AdminDeleteMapper;
import com.example.travel.mapper.AdminSelectMapper;
import com.example.travel.service.IAdminDeleteService;
import com.example.travel.service.IAdminSelectService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminDeleteService implements IAdminDeleteService {

    @Autowired
    private AdminDeleteMapper adminDeleteMapper;

    @Override
    public boolean delUserData(User user) {
        return adminDeleteMapper.delUserData(user);
    }

    @Override
    public boolean delFestivalInformation(FestivalDTO festivalDTO) {
        return adminDeleteMapper.delFestivalInformation(festivalDTO);
    }

    @Override
    public boolean delScenicInformation(ScenicDTO scenicDTO) {
        return adminDeleteMapper.delScenicInformation(scenicDTO);
    }

    @Override
    public boolean delLeaveInformation(LeaveDTO leaveDTO) {
        return adminDeleteMapper.delLeaveInformation(leaveDTO);
    }

    @Override
    public boolean delScenicBannerImg(ScenicImgDTO scenicImgDTO) {
        return adminDeleteMapper.delScenicBannerImg(scenicImgDTO);
    }

    @Override
    public boolean delHotelInformation(HotelDTO hotelDTO) {
        return adminDeleteMapper.delHotelInformation(hotelDTO);
    }


}
